package com.uchengwang.ui.cm_ui.cycle.bean;

import android.text.TextUtils;

import com.litesuits.orm.db.annotation.Column;
import com.uchengwang.functions.db.dbBean.DbBase;

/**
 * Created by U城网 on 2018/1/24.
 */

public class CycleShareBean extends DbBase{
    @Column("createTime")
    private long createTime;

    @Column("cycleId")
    private long cycleId;

    @Column("cycleName")
    private String cycleName;

    private int cycleType;

    @Column("id")
    private long id;
    private String nickName;

    @Column("shareContent")
    private String shareContent;

    @Column("shareImg")
    private String shareImg;

    private String shareTitle;
    @Column("shareType")
    private int shareType;
    private long uid;
    private long uniId;
    private String uniName;
    private String userAvatar;
    private String shareFirstImg;//发布图片集合里的第一张
    private String shareCover;

    public String getShareCover() {
        return shareCover;
    }

    public void setShareCover(String shareCover) {
        this.shareCover = shareCover;
    }

    public String getShareFirstImg() {
        if (!TextUtils.isEmpty(shareImg)){
            String[] shares = shareImg.split(";");
            return shares[0];
        }
        return null;
    }

    public void setShareFirstImg(String shareFirstImg) {
        this.shareFirstImg = shareFirstImg;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getCycleId() {
        return cycleId;
    }

    public void setCycleId(long cycleId) {
        this.cycleId = cycleId;
    }

    public String getCycleName() {
        return cycleName;
    }

    public void setCycleName(String cycleName) {
        this.cycleName = cycleName;
    }

    public int getCycleType() {
        return cycleType;
    }

    public void setCycleType(int cycleType) {
        this.cycleType = cycleType;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getShareContent() {
        return shareContent;
    }

    public void setShareContent(String shareContent) {
        this.shareContent = shareContent;
    }

    public String getShareImg() {
        return shareImg;
    }

    public void setShareImg(String shareImg) {
        this.shareImg = shareImg;
    }

    public String getShareTitle() {
        return shareTitle;
    }

    public void setShareTitle(String shareTitle) {
        this.shareTitle = shareTitle;
    }

    public int getShareType() {
        return shareType;
    }

    public void setShareType(int shareType) {
        this.shareType = shareType;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public long getUniId() {
        return uniId;
    }

    public void setUniId(long uniId) {
        this.uniId = uniId;
    }

    public String getUniName() {
        return uniName;
    }

    public void setUniName(String uniName) {
        this.uniName = uniName;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }
}
